package main

import (
	"fmt"
	"math"
)

/*func main() {
	// todo invalid map key type func()
	m1:=make(map[func()]int)
	fmt.Println(m1)

	// todo invalid map key type []int
	m2:=make(map[[]int]int)
	fmt.Println(m2)

	// todo invalid map key type map[int]int
	m3:=make(map[map[int]int]int)
	fmt.Println(m3)

	m4:=make(map[struct{}]int)
	fmt.Println(m4)

}*/

func main(){
	m:=make(map[float64]int)
	m[math.NaN()]=1
	m[math.NaN()]=2

	fmt.Println(m[math.NaN()])

	for k,v := range m {
		fmt.Println(k,v)
	}

}

